<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>flex布局</title>
		<style type="text/css">
			#d1{
				border:1px solid red;
				width: 100%;
				height: 300px;
				display: flex;
				/* 内部所有的元素进入弹性布局 可以使用宽高属性 */
				/* 设置主轴 默认是x方向 */
				flex-direction: row;
				/* 设置主轴上内容的排列 */
				/* justify-content: center; */
				/* justify-content: flex-end;
				justify-content: flex-start; */
				/* justify-content: space-around; */
				justify-content: space-between;
				/* 设置侧轴的排列 */
				/* align-items: center; */
				/* align-items: flex-end; */
				flex-wrap: wrap;
				align-content: space-around;
			}
			#d1>span{
				width: 150px;
				height: 60px;
				background-color: orange;
				text-align: center;
				line-height: 60px;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			<span>导航内容</span><span>导航内容</span><span>导航内容</span><span>导航内容</span><span>导航内容</span>
			<span>导航内容</span><span>导航内容</span><span>导航内容</span><span>导航内容</span><span>导航内容</span>
			<span>导航内容</span><span>导航内容</span><span>导航内容</span><span>导航内容</span><span>导航内容</span>
		</div>
	</body>
</html>